export interface Role {
  id: number;
  name: string;
  permissions: Permission[];
  departments: Department[];
  pids: number[]; 
  dids: number[];  
  is_delete: 0 | 1;
  createDate: string;
  createUser: string;
  updateDate: string;
  updateUser: string;
}

export interface RoleForm {
  id?: number;
  name: string;
  pids: number[];
  dids: number[];
}

export interface RoleQuery {
  name?: string;
}
export interface Permission {
  id: number
  name: string
  purl: string
  is_delete: 0 | 1
  createDate: string
  createUser: string
  updateDate: string
  updateUser: string
}
export interface Department {
  id: number
  name: string
  is_delete: 0 | 1
  createDate: string 
  createUser: string
  updateDate: string
  updateUser: string
}